package itsm.isperp.framework.domain;

/**
 * 一个专门用于组件权限分类的枚举类，目前只有读、写两种类型权限
 */
public enum AuthorityType {
	READ("R"), WRITE("W");
	private String read = "";
	private String write = "";

	private AuthorityType(String type) {
		if (type.equals("W")) {
			this.write = "W";
		}
		if (type.equals("R")) {
			this.read = "R";
		}

	}

	@Override
	public String toString() {
		return read + write;
	}

}
